<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <ul>
        <li>王一博</li>
        <li>肖战</li>
        <li>剑圣</li>
    </ul>
    <ol></ol>
    <script>
        let li = document.querySelector('li');
        li.innerHTML = '孙红雷';

        let ul = document.querySelector('ul');

        ul.insertBefore(li, ul.children[1]);
    </script>
</body>

</html>